//logs.js
var util = require('../../utils/util.js')
Page({
  data: {
    logs: []
  },
  onLoad: function () {
    this.ctoast = this.selectComponent("#ctoast");
    this.cmodal = this.selectComponent("#cmodal");
    this.cinfo = this.selectComponent("#cinfo");
    this.chotel = this.selectComponent("#chotel");
  },
  onMyEvent(){

  },
  showToast(){
    this.ctoast.autoShow();
  },
  showModal(){
    this.cmodal.showDialog();
  },
  showInfo(){
    this.cinfo.showInfo();
  },
  showHotel(){
    this.chotel.show();
  },
  confirm(){
    console.log('确认')
    this.cmodal.hideDialog();
  },
  cancel() {
    console.log('取消')
    this.cmodal.hideDialog();
  },
})
